/**
 * BootStrap
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
import com.gr.Company;
import grails.converters.JSON

class BootStrap {

	def init = {servletContext ->
		
		if (!Company.count()) {
			new Company(title:"Mera", email:"main@mera.ru", startDate: new Date("1989/1/9")).save()
		}
		
	}

	def destroy = {
	}
}